package br.ufrj.dcc.comp2.musica.vista;

import java.awt.BorderLayout;
import java.awt.CardLayout;

import javax.swing.JPanel;

public class PainelPrincipal extends JPanel {
	JPanel cabecalho;
	JPanel principal;
	CardLayout cardLayout;
	
	public PainelPrincipal(String tipo) {
		setLayout(new BorderLayout());
		
		cardLayout = new CardLayout();
		principal = new JPanel(cardLayout);
		
		if (tipo.equalsIgnoreCase("aluno")) {
			cabecalho = new PainelInfoAluno();
			// TODO: Montar cardLayout de aluno
		}
		else if (tipo.equalsIgnoreCase("professor")) {
			cabecalho = new PainelInfoFuncionario();
			// TODO: Montar cardLayout de professor
		}
		else {
			cabecalho = new PainelInfoFuncionario();
			// TODO: Montar cardLayout de adm
		}
		
		add(cabecalho, BorderLayout.NORTH);
		add(principal, BorderLayout.CENTER);
	}
}
